Fix `ostree admin kargs edit-in-place` assertion when deployments
authorHuijing Hei <hhei@redhat.com>
Fri, 19 Aug 2022 03:31:46 +0000 (11:31 +0800)
committerHuijing Hei <hhei@redhat.com>
Mon, 29 Aug 2022 03:31:32 +0000 (11:31 +0800)
commit37aa2ac2876ae7fb0f14689aa20394694d97c2dd
tree16614eaec22a7e354f07732dd16246493647f415
parent93a6d7bea2bbbdd61053c99af3a7a2276fdaa234
Fix `ostree admin kargs edit-in-place` assertion when deployments
are pending

This is to support pending deployments instead of rasing assertion.
For example:
```
$ sudo rpm-ostree kargs --append=foo=bar
$ sudo ostree admin kargs edit-in-place --append-if-missing=foobar
```
After reboot we get both `foo=bar foobar`.

Fix https://github.com/ostreedev/ostree/issues/2679
src/libostree/ostree-sysroot-deploy.c
tests/kolainst/destructive/kargs-edit-in-place.sh